<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use App\Model\Comcheck;
use App\Model\Company;
class Video extends Model
{
    //
    protected $table = 'video';
    //视频类型
    public static function get_status($type=0){
        $data = ['2'=>'法律法规','3'=>'标准规范','4'=>'培训课件']; //'1'=>'培训视频',
        return $data[$type]??$data;
    }
    //所有的视频类型
    public static function get_status_all($type=0){
        $data = ['1'=>'培训视频','2'=>'法律法规','3'=>'标准规范','4'=>'培训课件'];
        return $data[$type]??$data;
    }
}
